<template>
    <div class="center-box">
        <el-breadcrumb class="breadcrumb-area" separator-class="el-icon-arrow-right">
            <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
            <el-breadcrumb-item :to="{ path: '/compontProp' }">组件传参</el-breadcrumb-item>
        </el-breadcrumb>
        <div class="right-oper">
            <div class="fr btnwrap">
                <el-form :inline="true" class="q_term" :model="formInline" ref="formInline" label-width="100px">
                    <!-- <el-form :model="formInline" class="demo-form-inline"> -->
                    <el-form-item label="审批人">
                        <el-input v-model="formInline.user" placeholder="审批人"></el-input>
                    </el-form-item>
                    <el-form-item label="活动区域">
                        <el-select v-model="formInline.region" placeholder="活动区域">
                            <el-option v-for="(item, index) in userList" :key="index" :label="item.label" :value="item.value">
                            </el-option>
                            <!-- <el-option label="区域一" value="shanghai"></el-option>
                    <el-option label="区域二" value="beijing"></el-option> -->
                        </el-select>
                    </el-form-item>
                    <el-form-item>
                        <el-button class="BtnYellow fr" @click="onSubmit" type="primary"><i class="fa fa-search"></i>搜索</el-button>
                    </el-form-item>
                </el-form>
            </div>
        </div>
    </div>
</template>

<script>
    export default {
        name: 'Sidebar',
        props: {
            tableData: Array
        },
        data() {
            return {
                formInline: {
                    user: '',
                    region: ''
                },
                userList: [{
                    value: '选项1',
                    label: '黄金'

                }, {
                    value: '选项2',
                    label: '双皮奶'
                }, {
                    value: '选项3',
                    label: '蚵仔煎'
                }, {
                    value: '选项4',
                    label: '龙须面'
                }, {
                    value: '选项5',
                    label: '北京烤鸭'
                }]
            }
        },
        methods: {
            onSubmit() {
                console.log('submit!');
            }
        }
    }
</script>

<style lang="less" scoped>

</style>